package com.ybkj.daijia.server.mapper;

import com.ybkj.daijia.server.model.DriverChoseLevelZhuanxian;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DriverChoseLevelZhuanxianMapper {

    int insertRecord(DriverChoseLevelZhuanxian driverChoseLevelZhuanxian);

    DriverChoseLevelZhuanxian selectByDriverAndLevelAndLine(@Param("driverId") Long driverId,
        @Param("driverlevelId") Long driverlevelId, @Param("lineId") Long lineId,
        @Param("lineType") Integer lineType);

    DriverChoseLevelZhuanxian selectByDriverAndLine(@Param("driverId") Long driverId,
        @Param("lineId") Long lineId, @Param("lineType") Integer lineType);

    List<DriverChoseLevelZhuanxian> selectByDriver(@Param("driverId") Long driverId);

    int deleteByDriver(@Param("driverId") Long driverId);

    int deleteByDriverAndLine(@Param("driverId") Long driverId,
        @Param("lineType") Integer lineType);


}
